# -*- coding: utf-8 -*-
"""
@Time    : 2022/7/24 20:50
@Author  : Corey
"""
from PyQt5.QtWidgets import QTableWidget, QAbstractItemView, QRadioButton, QButtonGroup, QApplication, QCheckBox, \
    QTableWidgetItem, QWidget, QVBoxLayout, QHBoxLayout, QPushButton
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap
import sys
import os

# path = os.getcwd() + "\gui\silith"
path = ".."


class MapGui(QWidget):
    def __init__(self):
        super().__init__()
        self._setUp()

    def _setUp(self):
        self.setWindowTitle("测试器件选择")
        self.setWindowIcon(QIcon(f"./icons/new_logo.ico"))
        self.vl_content = QVBoxLayout(self)
        self.pb_verify = QPushButton("确认测试的subdie和die")
        self.hl_content = QHBoxLayout()
        self.tw_content = QTableWidget()
        self.tw_content.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
        self.tw_content.horizontalHeader().setHighlightSections(False)
        self.tw_content.setEditTriggers(QAbstractItemView.NoEditTriggers)
        self.tw_content.setColumnWidth(0, 220)

        self.tw_content.resizeColumnsToContents()
        self.pb_verify.setFixedSize(250, 40)
        self.vl_content.addWidget(self.pb_verify)
        self.vl_content.addWidget(self.tw_content)


if __name__ == '__main__':
    app = QApplication(sys.argv)
    wd_obj = MapGui()
    wd_obj.show()
    sys.exit(app.exec_())
